﻿<%@ Page Language="C#" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master"
    AutoEventWireup="true" CodeFile="ViewProviderCarYear.aspx.cs" Inherits="Provider_CarInsurance_ViewProviderCarYear"
    Title="View Car - Vehicle Year" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="provider_inner">
        <h1>
            Vehicle Year</h1>
        <div class="right_action">
            <asp:HyperLink runat="server" ID="lnkNewCarUsage" NavigateUrl="~/Provider/CarInsurance/ProviderCarYear.aspx"
                Text="New"></asp:HyperLink>
        </div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="2"
            DataKeyNames="ProviderCarYearId,ProviderCompanyId" DataSourceID="sqlDsProviderCarYear"
            CssClass="progridstyle" GridLines="None" EmptyDataText="There are no data records to display.">
            <Columns>
                <asp:BoundField DataField="ProviderCarYearId" HeaderText="ProviderCarYearId" InsertVisible="False"
                    ReadOnly="True" SortExpression="ProviderCarYearId" Visible="False" />
                <asp:BoundField DataField="ProviderCompanyId" HeaderText="ProviderCompanyId" ReadOnly="True"
                    SortExpression="ProviderCompanyId" Visible="False" />
                <asp:BoundField DataField="CXCoverTypeId" HeaderText="CXCoverTypeId" SortExpression="CXCoverTypeId"
                    Visible="False" />
                <asp:BoundField DataField="ProviderCoverTypeDesc" HeaderText="ProviderCoverTypeDesc"
                    SortExpression="ProviderCoverTypeDesc" />
                 <%--Sakthi on 28 Dec 2010 -- Start
                <asp:BoundField DataField="FromYear" HeaderText="FromYear" SortExpression="FromYear" />
                <asp:BoundField DataField="ToYear" HeaderText="ToYear" SortExpression="ToYear" />--%>
                <asp:BoundField DataField="FromYr" HeaderText="FromYear" SortExpression="FromYear" />
                <asp:BoundField DataField="ToYr" HeaderText="ToYear" SortExpression="ToYear" />
                <%--Sakthi on 28 Dec 2010  -- End --%>
                <asp:BoundField DataField="YearRate" DataFormatString="{0:F}" HeaderText="YearRate"
                    SortExpression="YearRate" />
                <asp:BoundField DataField="RefCEUserId" HeaderText="RefCEUserId" SortExpression="RefCEUserId" Visible="false" />
                <asp:CheckBoxField DataField="Status" HeaderText="Status" SortExpression="Status" />
                <asp:BoundField DataField="CreatedDate" HeaderText="CreatedDate" SortExpression="CreatedDate"
                    Visible="False" />
                <asp:BoundField DataField="ModifiedDate" HeaderText="ModifiedDate" SortExpression="ModifiedDate" />
                <%--Sakthi on 28 Dec 2010 -- Start
                <asp:HyperLinkField HeaderText="" Text="Edit" Target="_self" DataNavigateUrlFormatString="ProviderCarYear.aspx?FromYear={0}&ToYear={1}&CXCoverTypeId={2}"
                    DataNavigateUrlFields="FromYear,ToYear,CXCoverTypeId"></asp:HyperLinkField>--%>
                <asp:HyperLinkField HeaderText="" Text="Edit" Target="_self" DataNavigateUrlFormatString="ProviderCarYear.aspx?FromYear={0}&ToYear={1}&CXCoverTypeId={2}"
                    DataNavigateUrlFields="FromYr,ToYr,CXCoverTypeId"></asp:HyperLinkField>
                    <%--Sakthi on 28 Dec 2010  -- End --%>
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle CssClass="progridover" />
            <HeaderStyle CssClass="progridheader" />
            <EditRowStyle />
            <AlternatingRowStyle CssClass="progridodd" />
            <RowStyle CssClass="progrideven" />
        </asp:GridView>
        <asp:SqlDataSource ID="sqlDsProviderCarYear" runat="server" ConnectionString="<%$ ConnectionStrings:CE_DBConnectionString %>"
            SelectCommand="sprocProviderCarYearSelectItemListView" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:SessionParameter Name="ProviderCompanyId" SessionField="ProviderCompanyId" Type="Int64" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
            ID="ibtBack" runat="server" ImageUrl="~/Provider/images/buttons/back1.gif" OnClick="ibtBack_Click" />
    </div>
</asp:Content>
